package com.lanfan.entity;

/**
 * @program: sc20240702
 * @description:
 * @author: XG
 * @create: 2024-09-11 14:41
 * @version: 1.0
 **/
public class ResponseResult<T> {
    private Integer code=200;//响应状态码   200 404 500   还可以自定义  4444

    private String message;//相应的信息  相应成功

    private T date;//存储响应给前台的数据

    public ResponseResult() {
    }

    public ResponseResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public ResponseResult(Integer code, String message, T date) {
        this.code = code;
        this.message = message;
        this.date = date;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getDate() {
        return date;
    }

    public void setDate(T date) {
        this.date = date;
    }

}